QT       -= gui
QT += xml


greaterThan(QT_MAJOR_VERSION, 4): CONFIG += c++11

TARGET = dataspecification

TEMPLATE = lib

#CONFIG(debug, debug|release) {
#    TARGET = $$TARGET"_d_"$$QT_MAJOR_VERSION$$QT_MINOR_VERSION$$QT_PATCH_VERSION
#} else {
#    TARGET = $$TARGET"_r_"$$QT_MAJOR_VERSION$$QT_MINOR_VERSION$$QT_PATCH_VERSION
#}

DEFINES += DATASPECIFICATION_LIBRARY


INCLUDEPATH += $$PWD/include

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ae/aeampspectrum.cpp \
    ae/aephasespectrum.cpp \
    ae/aepulsespectrum.cpp \
    ae/aewavespectrum.cpp \
    common/binaryprocesshelper.cpp \
    common/dataspecificationutils.cpp \
    common/jsonprocesshelper.cpp \
    common/xmldocument.cpp \
    common/xmlprocesshelper.cpp \
    crcutil/crcutil.cpp \
    currentamplitude/currentampspectrum.cpp \
    dataspecification.cpp \
    infrared/infraredspectrum.cpp \
    mechanical/mechanicalcoilspectrum.cpp \
    mechanical/mechanicalmotorspectrum.cpp \
    mechanical/mechanicalspectrum.cpp \
    mechanical/mechanicalswitchspectrum.cpp \
    private/aespectrumprivatedefine.cpp \
    private/currentampspectrumprivatedefine.cpp \
    private/infraredspectrumprivatedefine.cpp \
    private/mechanicalspectrumprivatedefine.cpp \
    private/prpsprpdspectrumprivatedefine.cpp \
    private/spectrumdatafileprivatedefine.cpp \
    private/spectrumprivatedefine.cpp \
    private/tevspectrumprivatedefine.cpp \
    prps/prpdspectrum.cpp \
    prps/prpsspectrum.cpp \
    spectrum.cpp \
    tev/tevampspectrum.cpp

HEADERS += \
    ae/aeampspectrum.h \
    ae/aephasespectrum.h \
    ae/aepulsespectrum.h \
    ae/aespectrumdefine.h \
    ae/aewavespectrum.h \
    common/binaryprocesshelper.h \
    common/dataspecificationutils.h \
    common/jsonprocesshelper.h \
    common/xmldocument.h \
    common/xmlprocesshelper.h \
    crcutil/crcutil.h \
    currentamplitude/currentampspectrum.h \
    currentamplitude/currentampspectrumdefine.h \
    dataspecification_def.h \
    dataspecification_global.h \
    dataspecification.h \
    include/Crypto/QtCrypto.h \
    include/rapidjson/allocators.h \
    include/rapidjson/document.h \
    include/rapidjson/encodedstream.h \
    include/rapidjson/encodings.h \
    include/rapidjson/error/en.h \
    include/rapidjson/error/error.h \
    include/rapidjson/filereadstream.h \
    include/rapidjson/filewritestream.h \
    include/rapidjson/fwd.h \
    include/rapidjson/internal/biginteger.h \
    include/rapidjson/internal/diyfp.h \
    include/rapidjson/internal/dtoa.h \
    include/rapidjson/internal/ieee754.h \
    include/rapidjson/internal/itoa.h \
    include/rapidjson/internal/meta.h \
    include/rapidjson/internal/pow10.h \
    include/rapidjson/internal/regex.h \
    include/rapidjson/internal/stack.h \
    include/rapidjson/internal/strfunc.h \
    include/rapidjson/internal/strtod.h \
    include/rapidjson/internal/swap.h \
    include/rapidjson/istreamwrapper.h \
    include/rapidjson/memorybuffer.h \
    include/rapidjson/memorystream.h \
    include/rapidjson/msinttypes/inttypes.h \
    include/rapidjson/msinttypes/stdint.h \
    include/rapidjson/ostreamwrapper.h \
    include/rapidjson/pointer.h \
    include/rapidjson/prettywriter.h \
    include/rapidjson/rapidjson.h \
    include/rapidjson/reader.h \
    include/rapidjson/schema.h \
    include/rapidjson/stream.h \
    include/rapidjson/stringbuffer.h \
    include/rapidjson/writer.h \
    infrared/infraredspectrum.h \
    infrared/infraredspectrumdefine.h \
    mechanical/mechanicalcoilspectrum.h \
    mechanical/mechanicalmotorspectrum.h \
    mechanical/mechanicalspectrum.h \
    mechanical/mechanicalspectrumdefine.h \
    mechanical/mechanicalswitchspectrum.h \
    private/aespectrumprivatedefine.h \
    private/currentampspectrumprivatedefine.h \
    private/infraredspectrumprivatedefine.h \
    private/mechanicalspectrumprivatedefine.h \
    private/prpsprpdspectrumprivatedefine.h \
    private/spectrumdatafilecommondefine.h \
    private/spectrumdatafileprivatedefine.h \
    private/spectrumprivatedefine.h \
    private/tevspectrumprivatedefine.h \
    prps/prpdspectrum.h \
    prps/prpsprpdspectrumdefine.h \
    prps/prpsspectrum.h \
    spectrum.h \
    spectrumdatafiledefine.h \
    spectrumdefine.h \
    spectrumfactory.h \
    tev/tevampspectrum.h \
    tev/tevspectrumdefine.h

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../Crypto/release/ -lCrypto
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../Crypto/debug/ -lCrypto
else:unix: LIBS += -L$$OUT_PWD/../Crypto/ -lCrypto

INCLUDEPATH += $$PWD/../Crypto
DEPENDPATH += $$PWD/../Crypto
